package com.cl.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cl.bean.Emp;
import com.cl.dao.UserDao;
import com.cl.service.UserService;

@Service
@Transactional
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDao userDao;
	
	@Override
	public Emp login(Emp user) {
		return userDao.findUserUsernameAndPwd(user.getE_loginname(), user.getE_psw());
	}

}
